package com.itcat.mapper;/*
 * @Author: gonhsl
 * @Date:2022-04-04-10:04
 * */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itcat.mysql.pojo.SmsFlashPromotionSession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SmsFlashPromotionSessionMapper extends BaseMapper<SmsFlashPromotionSession> {
    @Select("SELECT count(product_id) from sms_flash_promotion_product_relation WHERE" +
            " flash_promotion_id=#{flashPromotionId} and flash_promotion_session_id=#{id} ")
    Integer selectbyFlashPromotionId(@Param("flashPromotionId") Integer flashPromotionId,@Param("id") Long id);
}
